package com.luban.springboot10.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luban.springboot10.dao.UserDaoTwo;
import com.luban.springboot10.pojo.User;
import com.luban.springboot10.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	//@Autowired  注释xml注入的Dao
	//private UserDao userDao;
	
	@Autowired
	private UserDaoTwo userDao;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return userDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(User record) {
		return userDao.insert(record);
	}

	@Override
	public int insertSelective(User record) {
		return userDao.insert(record);
	}

	@Override
	public User selectByPrimaryKey(Integer id) {
		return userDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(User record) {
		return userDao.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(User record) {
		return userDao.updateByPrimaryKey(record);
	}

}
